package com.gopay.common.riskcontrol.entity;

import com.gopay.common.domain.BaseEntity;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by zhaojt on 2016/7/29.
 * 订单风控规则快照表
 */
@Entity
@Table(name = "RC_ORDER_RULE_SNAPSHOT")
public class RcOrderRuleSnapshot extends BaseEntity {
    @Id
    @SequenceGenerator(name = "RC_ORDER_RULE_SNAPSHOT_SEQ_GENERATOR", sequenceName = "RC_ORDER_RULE_SNAPSHOT_SEQ", allocationSize = 1)
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "RC_ORDER_RULE_SNAPSHOT_SEQ_GENERATOR")
    @Column(name = "ID")
    private Long id;

    @Column(name = "GOPAY_ORDER_ID")
    private String gopayOrderId;    // 国付宝系统订单号

    @Column(name = "RULE_ID")
    private String ruleId;          //规则ID

    @Column(name = "RULE_CODE")
    private String ruleCode;        //规则编号

    @Column(name = "RULE_NAME")
    private String ruleName;        //规则名称

    @Column(name = "CREATED_TS")
    private Date createdTs;         //创建时间

    @Column(name = "RULE_TYPE")
    private String ruleType;        //规则类型

    @Column(name = "DEAL_TYPE")
    private String dealType;        //处理方式 01-通过可疑 02-拒绝

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getGopayOrderId() {
        return gopayOrderId;
    }

    public void setGopayOrderId(String gopayOrderId) {
        this.gopayOrderId = gopayOrderId;
    }

    public String getRuleId() {
        return ruleId;
    }

    public void setRuleId(String ruleId) {
        this.ruleId = ruleId;
    }

    public String getRuleCode() {
        return ruleCode;
    }

    public void setRuleCode(String ruleCode) {
        this.ruleCode = ruleCode;
    }

    public String getRuleName() {
        return ruleName;
    }

    public void setRuleName(String ruleName) {
        this.ruleName = ruleName;
    }

    public Date getCreatedTs() {
        return createdTs;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }

    public String getRuleType() {
        return ruleType;
    }

    public void setRuleType(String ruleType) {
        this.ruleType = ruleType;
    }

    public String getDealType() {
        return dealType;
    }

    public void setDealType(String dealType) {
        this.dealType = dealType;
    }
}
